projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dcc9fd
)
Fix a crash inside Haiku popup menus
author
Po Lu
<luangruo@yahoo.com>
Fri, 11 Mar 2022 12:41:30 +0000
(12:41 +0000)
committer
Po Lu
<luangruo@yahoo.com>
Fri, 11 Mar 2022 12:41:30 +0000
(12:41 +0000)
* src/haiku_support.cc (BMenu_run): Handle B_WOULD_BLOCK from
wait_for_objects loop.
src/haiku_support.cc
patch
|
blob
|
history
diff --git
a/src/haiku_support.cc
b/src/haiku_support.cc
index 9b85cd6e0ac84d6e892df5d7ef28721ac7a4f919..dcea69bb9a7014b48434e8a64ce46bbf04bf2320 100644
(file)
--- a/
src/haiku_support.cc
+++ b/
src/haiku_support.cc
@@
-2787,7
+2787,8
@@
BMenu_run (void *menu, int x, int y,
if ((stat = wait_for_objects_etc ((object_wait_info *) &infos, 3,
B_RELATIVE_TIMEOUT, timeout)) < B_OK)
{
- if (stat == B_INTERRUPTED || stat == B_TIMED_OUT)
+ if (stat == B_INTERRUPTED || stat == B_TIMED_OUT
+ || stat == B_WOULD_BLOCK)
continue;
else
gui_abort ("Failed to wait for popup");